home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8871 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: bnr.co.uk!news
  2. From: Jason Mann <jasman@nortel.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: gettimeofday() makes me mad !
  5. Date: Thu, 07 Mar 1996 09:56:45 +0000
  6. Organization: BNR Europe Limited, Harlow, GB
  7. Message-ID: <313EB2DD.42C7@nortel.co.uk>
  8. References: <208_9602292012@dudd.uniserve.com> <3136F957.5340@cmt.lpr.mail.carel.fi> <danpop.826026273@rscernix>
  9. NNTP-Posting-Host: 47.131.129.178
  10. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/712)
  11. MIME-Version: 1.0
  12. Content-Type: text/plain; charset=us-ascii
  13. Content-Transfer-Encoding: 7bit
  14.  
  15. Dan Pop wrote:
  16.  
  17. > >In Tandem, no. In AS/400, no. In ... (fill in your favorite
  18. > >machine). In Unix, use the function 'ftime'.
  19. > Don't!  In Unix, gettimeofday() is the right thing.  ftime is obsolete
  20. > and is provided only for compatibility with very old applications
  21. > (on some systems (e.g. HP-UX, AIX and Solaris) you have to link special
  22. > compatibility libraries to get it).
  23.  
  24.  
  25.   Where does the function getclock() come into it? As far as I can
  26. remember, gettimeofday() isn't available on a DEC Alpha, but getclock()
  27. is (which can be used to provide a similar function).
  28.   Are there any other functions which provide sub-second timing
  29. facilities other than ftime(), getclock() and gettimeofday()?
  30.  
  31. PS.  ftime() is available in TurboC as well.
  32.  
  33.  
  34. Jason Mann
  35. jwm@sys.uea.ac.uk        jasman@nortel.co.uk
  36.